package com.sxhuayuan.parking.utils;

import java.util.regex.Pattern;

public class RegexpUtil {

	public static boolean isCarPlate(String s) {
		Pattern p = Pattern.compile("^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Za-z]{1}[A-Za-z0-9]{4,5}[A-Za-z0-9挂学警港澳]{1}$");
		return p.matcher(s).find();
	}

	public static void main(String[] args) {
		String s = "使a33um01";
		System.out.println(isCarPlate(s));
		System.out.println(isCarPlate("苏A33u30学"));
	}
}
